package cn.edu.buu.hospital.entity;
import java.io.Serializable;
import java.util.Date;
/**
 * 医生实体类
 */
public class Doctor implements Serializable {
    // 医生ID（主键）
    private Long doctorId;
    // 医生姓名
    private String doctorName;
    // 性别
    private String gender;
    // 电话
    private String phone;
    // 邮箱
    private String email;
    // 身份证号
    private String idCard;
    // 科室ID（外键）
    private Long deptId;
    // 医院ID（外键）
    private Long hospitalId;
    // 医院名称（用于显示，非数据库字段）
    private String hospitalName;
    // 头像
    private String headPic;
    // 创建时间
    private Date createTime;
    // 更新时间
    private Date updateTime;
    
    // 无参构造方法
    public Doctor() {
    }
    
    // getter和setter方法
    public Long getDoctorId() {
        return doctorId;
    }
    
    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }
    
    public String getDoctorName() {
        return doctorName;
    }
    
    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }
    
    public String getGender() {
        return gender;
    }
    
    public void setGender(String gender) {
        this.gender = gender;
    }
    
    public String getPhone() {
        return phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getIdCard() {
        return idCard;
    }
    
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
    
    public Long getDeptId() {
        return deptId;
    }
    
    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
    
    public Long getHospitalId() {
        return hospitalId;
    }
    
    public void setHospitalId(Long hospitalId) {
        this.hospitalId = hospitalId;
    }
    
    public String getHospitalName() {
        return hospitalName;
    }
    
    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }
    
    public String getHeadPic() {
        return headPic;
    }
    
    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Date getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    // toString方法
    @Override
    public String toString() {
        return "Doctor{" +
                "doctorId=" + doctorId +
                ", doctorName='" + doctorName + '\'' +
                ", gender='" + gender + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", idCard='" + idCard + '\'' +
                ", deptId=" + deptId +
                ", hospitalId=" + hospitalId +
                ", hospitalName='" + hospitalName + '\'' +
                ", headPic='" + headPic + '\'' +
                '}';
    }
}